package com.weight.common.login.em;

public enum Status implements EnumsID{
	ON(1,"在职"),
	LEAVE(2,"离职")
	;
	private Integer id;
    private String text;
    
    private Status(Integer id,String text){
        this.id = id;
        this.text = text;
    }
	@Override
	public String getText() {
		return text;
	}
	@Override
	public Integer getId() {
		return id;
	}
	public static Status findById(Integer id) {
		Status[] objs = Status.values();
        for (Status obj : objs) {
            if (id.equals(obj.getId())) {
                return obj;
            }
        }
        return null;
    }
}
